<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>新增客户</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/element-ui@2.14.1/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://cdn.jsdelivr.net/npm/element-ui@2.14.1/lib/index.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/moment@2.29.1/moment.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/axios@0.21.0/dist/axios.min.js"></script>
    <style>
        body {
            /* padding-left: 15%;
            padding-right: 15%; */
        }

        .title {
            text-align: center;
            font-size: 18px;
        }
        
        .form {
            margin-top: 20px;
        }

        .innerMargin {
            margin-top: 5px;
        }
    </style>
</head>


<body>
    <div id="app">
        <el-row>
            <el-col :span="24">
                <div class="title">{{title}}</div>
            </el-col>
        </el-row>
        <el-form class="form" ref="form" :model="form" label-width="200px" size="small">
            <el-form-item label="主题">
                <el-input v-model="form.subject"></el-input>
            </el-form-item>
            <el-form-item label="起止时间">
                <el-col :span="2">
                    开始时间
                </el-col>
                <el-col :span="10">
                    <el-date-picker type="date" placeholder="选择日期" v-model="form.beginTime" style="width: 100%;">
                    </el-date-picker>
                </el-col>
                <el-col :span="2">
                    结束时间
                </el-col>
                <el-col :span="10">
                    <el-date-picker type="date" placeholder="选择日期" v-model="form.endTime" style="width: 100%;">
                    </el-date-picker>
                </el-col>
            </el-form-item>
            <el-form-item label="本周计划">
                <el-input type="textarea" v-model="form.thisWeek_Plan" show-word-limit :autosize="{ minRows: 3}"></el-input>
            </el-form-item>
            <el-form-item label="本周总结">
                <el-input type="textarea" show-word-limit :autosize="{ minRows: 4}" v-model="form.thisWeek_summary"></el-input>
            </el-form-item>
            <el-form-item label="是否适用">
                <el-checkbox-group
                    v-model="selectedWeek">
                    <el-checkbox v-for="week in weeks" :label="week" :key="week">{{week}}</el-checkbox>
              </el-checkbox-group>
            </el-form-item>
            <el-form-item class="title">
                <span>下周计划</span>
            </el-form-item>
            <el-form-item label="重点行程">
                <el-input type="textarea" show-word-limit :autosize="{ minRows: 4}" v-model="form.keyItinerary"></el-input>
            </el-form-item>
            <el-form-item label="款项预估">
                <el-row>
                    <el-col :span="12">
                        <el-row>
                            <el-col :span="24">下周发货预估</el-col>
                        </el-row>
                        <el-row>
                            <el-col :span="24"><el-input autosize v-model="form.nextWeek_send_goods"></el-input></el-col>
                        </el-row>
                    </el-col>
                    <el-col :span="12">
                        <el-row>
                            <el-col :span="24">下周回款预估</el-col>
                        </el-row>
                        <el-row>
                            <el-col :span="24"><el-input autosize v-model="form.nextWeek_rec_money"></el-input></el-col>
                        </el-row>
                    </el-col>
                </el-row>
            </el-form-item>
            <el-form-item class="title">
                <span>分析管理</span>
            </el-form-item>
            <el-form-item label="本周遇到的核心问题是什么？你需要的支持及对公司的建议是什么？（市场支持是什么？技术支持是什么？物流支持是什么？）">
                <el-input type="textarea" show-word-limit :autosize="{ minRows: 5}" v-model="form.analysis_management"></el-input>
            </el-form-item>
            <el-form-item label="大区总经理批示">
                <el-input type="textarea" show-word-limit :autosize="{ minRows: 5}" v-model="form.proposals"></el-input>
            </el-form-item>
        </el-form>
    </div>
    <script>
        Vue.prototype.$moment = moment;
        Vue.prototype.$axios = axios;
        new Vue({
            el: '#app',
            data() {
                return {
                    selectedWeek: [],
                    weeks: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
                    title: '分公司总经理周报周计划',
                    form: {
                        subject: '',
                        title: '分公司总经理周报周计划',
                        beginTime: '',
                        endTime: '',
                        thisWeek_Plan: '',
                        thisWeek_summary: '',
                        keyItinerary: '',
                        nextWeek_send_goods: '',
                        nextWeek_rec_money: '',
                        analysis_management: '',
                        proposals: ''
                    }
                }
            },
            methods: {

            }
        })
    </script>
</body>

</html>